import Vue from 'vue'
import VueRouter from 'vue-router'
import Luckdraw from '../views/Luckdraw.vue'
import LuckHome from '../components/LuckHome.vue'
import Queue from '../components/Queue.vue'
import GuessSize from '../components/GuessSize.vue'

Vue.use(VueRouter)

const routes = [

   {
    path: '/',
    name: 'LuckHome',
    component: LuckHome
  },

   {
    path: '/home',
    component: () => import( '../components/LuckHome.vue')
  },

   {
    path: '/luckdraw',
    name: 'Luckdraw',
    component: Luckdraw
  },

   {
    path: '/queue',
    name: 'Queue',
    component: Queue
  },
  {
    path: '/guess',
    name: 'GuessSize',
    component: GuessSize
  },

  {
    path: '/luckdraw',
    component: () => import( '../views/Luckdraw.vue')
  },

    {
    path: '/queue',
    component: () => import( '../components/Queue.vue')
  },

  {
    path: '/guess',
    component: () => import( '../components/GuessSize.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
